package com.xuetang9.t9.hotel.beans;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 维修房间信息
 * @author PANG
 */
public class MaintainRoom implements Serializable {

    /**
     *维修房间记录编号
     */
    private Integer maintainId;

    /**
     *维护类型1-维修，2-清扫
     */
    private Integer maintainType;

    /**
     *维修房间编号
     */
    private Integer roomId;

    /**
     *维修工作人员编号
     */
    private Integer staffId;

    /**
     *开始维修时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startDate;

    /**
     *结束维修时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endDate;

    /**
     *维修原因
     */
    private String naintainReason;

    /**
     *维修状态(0未完成，1已完成)
     */
    private Integer maintainState;

    /**
     *维修结果
     */
    private String maintainResult;

    /**
     *维修备注
     */
    private String maintainComment;

    //外键
    /**
     * 房间信息
     */
    private RoomInfo roomInfo;

    /**
     * 人员信息
     */
    private StaffInfo staffInfo;

    public Integer getMaintainId() {
        return maintainId;
    }

    public void setMaintainId(Integer maintainId) {
        this.maintainId = maintainId;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getNaintainReason() {
        return naintainReason;
    }

    public void setNaintainReason(String naintainReason) {
        this.naintainReason = naintainReason;
    }

    public Integer getMaintainState() {
        return maintainState;
    }

    public void setMaintainState(Integer maintainState) {
        this.maintainState = maintainState;
    }

    public String getMaintainResult() {
        return maintainResult;
    }

    public void setMaintainResult(String maintainResult) {
        this.maintainResult = maintainResult;
    }

    public String getMaintainComment() {
        return maintainComment;
    }

    public void setMaintainComment(String maintainComment) {
        this.maintainComment = maintainComment;
    }

    public RoomInfo getRoomInfo() {
        return roomInfo;
    }

    public void setRoomInfo(RoomInfo roomInfo) {
        this.roomInfo = roomInfo;
    }

    public StaffInfo getStaffInfo() {
        return staffInfo;
    }

    public void setStaffInfo(StaffInfo staffInfo) {
        this.staffInfo = staffInfo;
    }

    public Integer getMaintainType() {
        return maintainType;
    }

    public void setMaintainType(Integer maintainType) {
        this.maintainType = maintainType;
    }

    @Override
    public String toString() {
        return "MaintainRoom{" +
                "maintainId=" + maintainId +
                ", maintainType=" + maintainType +
                ", roomId=" + roomId +
                ", staffId=" + staffId +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", naintainReason='" + naintainReason + '\'' +
                ", maintainState=" + maintainState +
                ", maintainResult='" + maintainResult + '\'' +
                ", maintainComment='" + maintainComment + '\'' +
                ", roomInfo=" + roomInfo +
                ", staffInfo=" + staffInfo +
                '}';
    }
}
